///当前socket状态
class SocketState {
  //未连接状态
  static const offLine = 0;

  //连接状态
  static const onLine = 1;

  //未知状态
  static const unKnown = 3;
}

///消息类型
class ChatMessageType {
  //登录消息
  static const login = 0;

  //正常消息，文字，图片，语音，文件，撤回，提示语等...
  static const normal = 1;

  //验证消息,添加好友，申请入群等...
  static const validate = 2;

  //系统通知，xxx推出群聊，xxx加入群聊
  static const system = 3;

  //发送消息回执
  static const normalReceipt = 4;

  //登录回执
  static const loginReceipt = 5;

  //消息发送失败回执
  static const invalidReceipt = 6;

  //消息撤回回执
  static const repealReceipt = 7;

  //未知消息类型
  static const unKnow = 8;
}

///消息内容
class ChatMessageContentType{
  //普通文本消息，表情...
  static const text = 0;

  //语音消息
  static const audio = 1;

  //图片消息
  static const picture = 2;

  //视频消息
  static const video = 3;

  //文件消息
  static const file = 4;

  //撤回消息
  static const repeal = 5;

  //提示消息
  static const tip = 6;
}
